/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prototype.communication;

import java.io.IOException;
import java.io.OutputStream;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Server
 */
public class Caster {

    private OutputStream os;

    public Caster(OutputStream outputStream) {
        os = outputStream;
    }

    public void castMessage(Message m) {
        m.serialize(os);
    }
}
